#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：turbo
@File    ：crypto_aes_gen_key.py
@Author  ：赵加响
@Date    ：2024/9/20 14:08 
@Desc    ：
"""

from django.core.management.base import BaseCommand

from utils.crypto.handler import AESCryptoHandler


class Command(BaseCommand):
    help = 'Generate Crypto AES Secret key'

    def handle(self, *args, **options):
        crypto = AESCryptoHandler()
        crypto.generate_key()
        self.stdout.write(self.style.SUCCESS('Generate crypto AES secret key successful.'))
